#ifndef USER_H
#define USER_H

#include <QString>

class User {
private:
    int userID;
    QString username;
    QString password;
    QString role; // "Patient" 或 "Doctor"
    QString name;
    QString gender;
    int age;
    QString contactNumber;
    QString email;

public:
    User() = default;
    User(int id, const QString &username, const QString &password,
               const QString &role, const QString &name, const QString &gender,
               int age, const QString &contactNumber, const QString &email)
        : userID(id), username(username), password(password), role(role),
          name(name), gender(gender), age(age), contactNumber(contactNumber), email(email) {
        // 构造函数的其他初始化逻辑（如果有的话）
    }

    int getUserID() const;
    void setUserID(int id);
    QString getUsername() const;
    void setUsername(const QString& user);
    QString getPassword() const;
    void setPassword(const QString& pass);
    QString getRole() const;
    void setRole(const QString& r);
    QString getName() const;
    void setName(const QString& n);
    QString getGender() const;
    void setGender(const QString& g);
    int getAge() const;
    void setAge(int a);
    QString getContactNumber() const;
    void setContactNumber(const QString& c);
    QString getEmail() const;
    void setEmail(const QString& e);
};

#endif // USER_H
